import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
// import user from './modules/user'
// import permission from './modules/permission'
import getters from './getters'
import {
  fail
} from 'assert';

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    host: null,
    sessionkey: 'null',
    orginCode: null,
    btnListCommon: [],
    relogin: true,
    isloading: false,
    PTCRFCHDID:"",
    currentUseRole: [],

    currentBtns: [],
    arrowShow: false,
    arrowBtnsWith: [],
    width: null,
    isInitPassWord: false,

  },
  modules: {
    app,
    // user,
    // permission
  },
  getters
})

export default store
